package com.library.service.student;

import com.library.dao.BookDao;
import com.library.dao.StudentDao;
import java.util.List;

public class RankService {
    private StudentDao studentDao = new StudentDao();
    private BookDao bookDao = new BookDao();

    // 学生借书排行榜
    public List<Object[]> getBorrowRank() {
        return studentDao.getBorrowRank();
    }

    // 书籍热度排行榜
    public List<Object[]> getBookHotRank() {
        return bookDao.getBookHotRank();
    }
} 